package cnam.smb215.findfriends;

import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;

public class MyProgressDialog extends ProgressDialog {
	Activity mActivity;
	
	public MyProgressDialog(Context context, Activity activity) {
		super(context);
		mActivity = activity;
	}
	
	@Override
	public void onBackPressed() {
		super.onBackPressed();
		mActivity.onBackPressed();
	}
	
	@Override
	public void dismiss() {
	}

	public void dismissManually() {
		super.dismiss();
	}
}
